package com.rem.mp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Rem
 * @date 2022-03-31
 */


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_info")
public class UserInfo {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String sex;

    public UserInfo(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }
}
